<?php
include '../config/auth.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>星星聊天系统</title>
    <link type="text/css" href="../css/MakeRoom.css" rel="stylesheet">
</head>
<body>
<div id="all">
    <div class="top">
        <div class="left">
            <?php
            include '../config/welcome.php';
            ?>
        </div>
        <div class="right">
            <a href="MakeRoom.php">新建聊天室</a>&nbsp;&nbsp;&nbsp;
            <a href="Update.php">修改资料</a>&nbsp;&nbsp;&nbsp;
            <a href="Index.php">退出</a>&nbsp;&nbsp;&nbsp;
        </div>
     </div>
        <div class="center">
            <div class="middle">
                <div class="ball">
            <form id="myForm" action="../action/MakeRoomAction.php" method="post" enctype="multipart/form-data" >
                <div class="tip">
                      <div class="left2">
                         <div class="left3"><label>房&nbsp;间&nbsp;号:</label></div>
                         <div class="right3"><input type="text" name="room_id" style="height: 30px;width: 200px"></div>
                      </div>    
                      <div class="right2"><label id="message"></label></div>
                </div>
                <div class="tip">
                     <div class="left2">
                         <div class="left3"><label>房间类型:</label></div>
                         <div class="right3"><input type="text" name="room_type" style="height: 30px;width: 200px"></div>
                     </div>
                </div>
                <div class="tip">
                    <div class="left2">
                        <div class="left3"><label>人数限制:</label></div>
                        <div class="right3"><input type="text" name="room_limit" style="height: 30px;width: 200px"></div>
                    </div>
                </div>
                <div class="tip">
                    <div class="left2">
                        <div class="left3"><label>房间图片: </label></div>
                            <div class="right3"><input id="file" type="file" name="image"></div>
                    </div>
                </div>
                <div class="tip">
                    <div class="left2">
                        <div class="left3">
                    <button type="button" style="height: 30px;width: 80px" onclick="window.location.href='Index.php';">返回</button>
                        </div>
                        <div class="right3">
                    <button type="submit" id="submit" style="height: 30px;width: 80px">提交</button>
                        </div>
                    </div>
                </div>
            </form>
                    <script src="../js/MakeRoom.js"></script>
                </div>
            </div>
        </div>
</div>
</body>
</html>